import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    name:'12'
  },
  mutations: {
    changeName(state,name){
      state.name = name
    }
  },
  actions: {
    changeName(state,name){
      state.name = name
    }
  },
  modules: {
  }
});
//this.$store.state.name  =  15

//this.$store.commit('changeName','1134')

//this.$store.dispatch('changeName','1134')

//this.$store.name.state.name